package demo;
public class TestVehicle {
    public static void main(String[] args) {
        Vehicle car=new Vehicle();
        car.setSpeed(0);//设置速度
        car.setSize(50);//设置体积
        car.move();//移动
        car.speedUp();//加速
        System.out.println("您当前的速度为："+car.getSpeed());
        car.speedDown();//减速
        System.out.println("您当前的速度为："+car.getSpeed());
    }
}
